<style>
    .title {
        font-weight: bold;
        font-size: 22px;
    }

    .value {
        padding-top: 7px;
    }
</style>
<form id="details-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="title">客户信息</div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">业务类型:</label>
        <div class="col-xs-12 col-sm-8 value">
            {if$row.customer.customer_identity==0}
            个人
            {elseif$row.customer.customer_identity==1}
            公司
            {else}
            {/if}
        </div>
    </div>
    {if$row.customer.customer_identity==0}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">客户姓名:</label>
        <div class="col-xs-12 col-sm-8  value">
            {$row.customer.full_name}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">身份证号:</label>
        <div class="col-xs-12 col-sm-8 value">
            {$row.customer.idnumber}
        </div>
    </div>
    {/if}
    {if$row.customer.customer_identity==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Corporate_name')}:</label>
        <div class="col-xs-12 col-sm-8 value">
            {$row.customer.corporate_name?:'无'}
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8 value">
            {$row.customer.mobile}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Corporate_type')}:</label>
        <div class="col-xs-12 col-sm-8 value">
            {if$row.customer.corporate_type==0}
            {:__('IndividualBusinesses')}
            {elseif$row.customer.corporate_type==1}
            {:__('SmallScalTaxpayer')}
            {else}
            {:__('GeneralTaxpayer')}
            {/if}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Region')}:</label>
        <div class="col-xs-12 col-sm-8 value">
            {$row.customer.region}
        </div>
    </div>

    <div class="title">服务信息</div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">服务内容:</label>
        <div class="col-xs-12 col-sm-10 ">
            <table border="1" width="100%" align="center" style="margin-top: 10px;text-align: center">
                <tbody>
                <tr>
                    <td>服务名称</td>
                    <td>标准价格</td>
                    <td>成交价格</td>
                    <td>服务期限</td>
                    <td>收款金额</td>
                    <td>剩余尾款</td>
                    <td>销售提成</td>
                    <td>会计提成</td>
                    <td>外勤提成</td>
                    <td>成本金额</td>
                </tr>
                {foreach $row.service_list as $index => $item}
                <tr>
                    <td>{$item.service_name}</td>
                    <td>{$item.standard_price}</td>
                    <td>{$item.deal_price}</td>
                    <td>
                        {if $item.month}

                        {if$item.start_time_text&&$item.end_time_text}
                        {$item.start_time_text} 至 {$item.end_time_text}
                        {else}
                        {$item.month}个月
                        {/if}
                        {else}
                        一次性服务
                        {/if}
                    </td>

                    <td>{$item.collection_price}</td>
                    <td>{$item.balance_price}</td>
                    <td>
                        {$item.sales_commission}
                        <a class="edit_service_commission" value="{$item.sales_commission}" csid="{$item.id}"
                           field="sales_commission">编辑</a>
                    </td>
                    <td>
                        {$item.account_commission}
                        <a class="edit_service_commission" value="{$item.account_commission}" csid="{$item.id}"
                           field="account_commission">编辑</a>
                    </td>
                    <td>
                        {$item.outworker_commission}
                        <a class="edit_service_commission" value="{$item.outworker_commission}" csid="{$item.id}"
                           field="outworker_commission">编辑</a>
                    </td>
                    <td>
                        {$item.cost_price}
                        <a class="edit_service_commission" value="{$item.cost_price}" csid="{$item.id}"
                           field="cost_price">编辑</a>
                    </td>
                </tr>
                {/foreach}
                </tbody>
            </table>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">服务说明:</label>
        <div class="col-xs-12 col-sm-8 value">
            {$row.service_desc}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">付款方式:</label>
        <div class="col-xs-12 col-sm-8 value">
            {if$row.pay_type==1}
            转账汇款
            {elseif$row.pay_type==1}
            现金
            {else}
            {/if}
        </div>
    </div>
    <hr>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">付款截图:</label>
        <div class="col-xs-12 col-sm-8 value">
            {if$row.pay_pic}
            <img src="{$row.pay_pic}" style="height: 120px">
            {else}
            未上传
            {/if}
        </div>
    </div>
    <!--    <div class="title">人员信息</div>-->
    <!--    <div class="form-group">-->
    <!--        <label class="control-label col-xs-12 col-sm-2">销售:</label>-->
    <!--        <div class="col-xs-12 col-sm-8 value">-->
    <!--            {$row.admin_info.nickname}-->
    <!--        </div>-->
    <!--    </div>-->

    <!--    <div class="form-group">-->
    <!--        <label class="control-label col-xs-12 col-sm-2">会计:</label>-->
    <!--        <div class="col-xs-12 col-sm-8 value">-->
    <!--            {$row.account_names}-->
    <!--            <a id="edit_account" package_id="{$row.package_id}" value="{$row.account_ids}">编辑</a>-->
    <!--        </div>-->
    <!--    </div>-->

    <!--    <div class="form-group">-->
    <!--        <label class="control-label col-xs-12 col-sm-2">外勤:</label>-->
    <!--        <div class="col-xs-12 col-sm-8 value">-->
    <!--            {$row.outworker_names}-->
    <!--            <a id="edit_outworker" package_id="{$row.package_id}" value="{$row.outworker_ids}">编辑</a>-->
    <!--        </div>-->
    <!--    </div>-->


    <div class="title">总计</div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">销售提成:</label>
        <div class="col-xs-12 col-sm-8 value">
            ￥{$row.sales_commission}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">会计提成:</label>
        <div class="col-xs-12 col-sm-8 value">
            ￥{$row.account_commission}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">外勤提成:</label>
        <div class="col-xs-12 col-sm-8 value">
            ￥{$row.outworker_commission}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">成本金额:</label>
        <div class="col-xs-12 col-sm-8 value">
            ￥{$row.cost_price}
        </div>
    </div>

    <!--        <div class="form-group layer-footer">-->
    <!--            <label class="control-label col-xs-12 col-sm-2"></label>-->
    <!--            <div class="col-xs-12 col-sm-8">-->
    <!--                <button type="submit" class="btn btn-primary btn-embossed">审核通过</button>-->
    <!--                <button type="submit" class="btn btn-primary btn-embossed">审核不通过</button>-->
    <!--            </div>-->
    <!--        </div>-->
</form>
